package org.eenie.commonlib.global

import co.zsmb.rainbowcake.base.RainbowCakeViewModel
import org.eenie.commonlib.ui.arch.ExampleViewState

import javax.inject.Inject

class GlobalModel @Inject constructor() : RainbowCakeViewModel<ExampleViewState>(ExampleViewState()) {

    private var mCount = 0

    fun load() = execute {
        mCount++
        viewState = viewState.copy().apply {
            name = "this name is $mCount"
        }
    }

}
